package com.bdq.user.api.model.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author malei
 * @date 2024-05-03 17:13
 */
@Data
public class LoginParam {

    /**
     * 用户手机号
     */
    @NotEmpty(message = "手机号不可为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号格式不正确")
    private String userMobile;

    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不可为空")
    private String verifyCode;
}
